<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><%=common.dict.WebsiteDict.TITLE %></title>
<link rel="shortcut icon" href="<%=request.getContextPath() %>/favicon.ico"  type="image/x-icon"/>
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/js/easyui/themes/icon.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/easyui/easyui.js"></script>
<script type="text/javascript">
$(function(){
	createTab('信息概览','<%=request.getContextPath() %>/about.html');
})
function createTab(title, url){
	$("#centralLayout").layout('panel','center').panel('setTitle','当前位置 -> '+title)
	$('#centralFrame').tabs('add',{
		title:title,
		content: '<iframe scrolling="auto" frameborder="0"  src="'+url+'" style="width:100%;height:100%;"></iframe>',
		closable:true
	});
}

</script>
</head>
<body >
<div id="centralLayout" class="easyui-layout" data-options="fit:true">
	<div data-options="region:'north',border:false" style="height:50px;background:#1c3e57;color: #fff;overflow: hidden;">
		<div style="float: left;;overflow: hidden;width: 700px;height: 50px;margin-left: 10px;">
			<font style=" font-size:24px;font-weight:bold;color: #fff;line-height: 50px;"><%=common.dict.WebsiteDict.CNNAME %></font>&nbsp;&nbsp;
			<font style=" font-size:18px;font-weight:bold;color: #fff;line-height: 50px;"><%=common.dict.WebsiteDict.ENNAME %></font>
		</div>
		<div style="float: right;overflow: hidden;width: 260px;height: 50px; margin-right: 10px;">
			<font style=" font-size:12px;color: #fff;line-height: 50px;">当前登录:<s:property value="#session.operatorBean.optName"/></font>&nbsp;&nbsp;<a href="javascript:createTab('密码修改','<%=request.getContextPath() %>/rof_editoperatorpassword.html');" style="color: #fff;">修改密码</a>&nbsp;&nbsp;<a href="<%=request.getContextPath() %>/rof_logout.html" style="color: #fff;">退出登录</a>
		</div>
	</div>
	<div data-options="region:'west',split:true,title:'功能菜单'" style="width:180px;">
			<div id="centralMenu" class="easyui-accordion" data-options="fit:true,border:true">
				<s:iterator value="#session.operatorlistfunction" id="show">
					<s:if test="#show.funDad==-1">
							<div id="<s:property value="#show.funNo"/>" title="<s:property value="#show.funName"/>"   style="padding:10px;">
								<table >
								<s:iterator value="#session.operatorlistfunction" id="item">
									<s:if test="#show.funNo==#item.funDad">
										<tr style="border:1px solid #ccc ;">
											<td width="30" align="center" valign="middle">
												<img  src="<%=request.getContextPath()%><s:property value="#item.funIcon"/>"/>
											</td>
											<td align="center" valign="middle">
												<input type="button" value="<s:property value="#item.funName"/>" class="menus" onclick="createTab(this.value,'<s:property value="#item.funRedirect"/>')"/>
											</td>
											
										</tr>
									</s:if>
								</s:iterator>
								</table>
							</div>		
					</s:if>
				</s:iterator>
			</div>
	</div>
	<div id="centralPanel" data-options="region:'center',title:' '">
		<div id="centralFrame" class="easyui-tabs" data-options="fit:true,border:false,plain:true" >
		</div>
	</div>
	
</div>
	
</body>
</html>